#include("/common/layout/bootstrap_form_layout.html")
#@layout()
#define head()
#define title()
#(jxrb.message(actionName,"systemReportInfo"))
#end
<script language="javascript">
  seajs.use(['jquery', 'jx_msgbox', "jx_check"], function ($, msgbox) {
    $("#b_submit").on("click", function () {
      if (!jxCheck.check())
        return false;
      msgbox.confirm({url: "#(controllerKey)#(action)/"},
      function ()
      {
        msgbox.close();
        clearForm();
      }, function ()
      {
        location.href = "#(controllerKey)";
      });
    })
    $("#b_return").on("click", function () {
      location.href = "#(controllerKey)";
    })
    var action = '#(action)';
    function clearForm()
    {
      if (action == 'added')
      {
        $("#reportCode").val("");
        $("#reportName").val("");
      }
    }

    if (action == 'edited')
    {
      $("#reportCode").attr("readonly", "readonly");
      $("#reportCode").addClass("readonly_input");
    }

  });
</script>
#end

#define bodyExt()
class="gray-bg"
#end

#define form()
#include("info.html")
#end

#define formAfter()
<center>
  #jx_button({value:"action.save"})
  #jx_button({value:"action.return",id:"b_return"})
</center>
#end
